package com.yingdong.gateserver.innter.handler;

import com.yingdong.gateserver.innter.message.GameMessage;
import com.yingdong.gateserver.innter.message.SM_HeartbeatMessage;
import com.yingdong.gateserver.net.GameSession;
import com.yingdong.gateserver.opcode.Dispatcher;

public class HeartBeatHandler extends GateServerHandler {

	@Override
	public int handle(int sessionId, GameMessage buffer) {
		GameSession session = Dispatcher.sessionMap.get(sessionId);
		session.setTimestamp(System.currentTimeMillis());
		new SM_HeartbeatMessage(sessionId).sendToSceneServer();
		return 0;
	}

}
